package org.gd.hellojaxb.privat24.regular;

import javax.xml.bind.annotation.*;

@XmlEnum
public enum RegularPayState {

    @XmlEnumValue("A") ACTIVE ("A", "активный"),
    @XmlEnumValue("I") NOT_ACTIVE("I", "не активный");

    private String name;
    private String description;

    private RegularPayState(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    @SuppressWarnings("unused")
    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return getName();
    }
}
